<!--
author:mazhaoyan
desc:首页数据上传字段映射配置
date:2018/01/22
-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页数据上传字段映射配置</title>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/lib/uplodifyh5/event_common.js"></script>
</head>

<body>
	<!-- 页面控制模块 -->
	<div class="continer-full">
		<div class="row">
			<div class="form-group col-xs-12">
				<label class="col-xs-1 " style="line-height: 30px;">文件类型</label>
				<div class="col-xs-2">
					<select class='form-control' id='mrDataMap'>
						<option value=''>请选择</option>
						<option value='xmlFile'>xml文件</option>
						<option value='otherFile'>其他文件(dbf|csv|excel)</option>
					</select>
				</div>
				<label class="col-xs-1 " style="line-height: 30px;">循环路径</label>
				<div class="col-xs-2">
					<input type="text" id="repeatNode" class="form-control"
						disabled="disabled" placeholder="/Cases/Case" />
				</div>
				<div class="col-xs-2">
					<input id="fieldMapUpload" type="file" name="file"
						style="display: none;" />
				</div>
				<div class="col-xs-2">
					<div class="btn-clickable" style="line-height: 30px;">
						<a href="download/MR_NODE.zip" class="link text-sm"
							style="text-decoration: none; color: #fff"><i
							class="fa fa-download"></i>&nbsp;下载模版</a>
					</div>
				</div>
				<label class="col-xs-2 control-label noMrFileTypeDict"
					style="width: 360px; color: red;"></label>
			</div>
		</div  class="row">

		<div class="row">
			 <div class="col-xs-2" style="margin-left: 20px;" tips="点击我添加节点">
			 <i class="icon-double-angle-down" id="add" style="font-size: 18px;color: #5fca5f;font-size: 30px;"></i>
			</div>
		</div>

		<div class="row" style="display: none" id="addForm">
			<div class="form-group col-xs-12">
				<div class="col-xs-2">
					<input type="text" class="form-control" id="fieldName"
						placeholder="字段/路径" />
				</div>

				<label class="col-xs-1 "style="line-height: 30px;">库表名称</label>
				<div class="col-xs-2">
					<select class='form-control' id="tableCode">
						<option value=''>请选择</option>
						<option value='MR_BASEINFO'>基本信息</option>
						<option value='MR_IPINFO'>住院信息</option>
						<option value='MR_APPENDPAGE'>附页信息</option>
						<option value='MR_DIAGNOSE'>诊断信息</option>
						<option value='MR_OPERATION'>手术信息</option>
						<option value='T_COSTSUB'>费用信息</option>
					</select>
				</div>
				<label class="col-xs-1" style="line-height: 30px;">库表字段</label>
				<div class="col-xs-2">
					<select class='form-control' id="fieldCode">
						<option value=''>请选择</option>
					</select>
				</div>
			</div>
			<div class="form-group col-xs-12">
				<div class="col-xs-2">
					<input type="text" class="form-control" id="fieldDesc"
						placeholder="字段描述" />
				</div>

				<label class="col-xs-1"style="line-height: 30px;">主要其他</label>
				<div class="col-xs-2">
					<select class='form-control' id="fieldType" disabled="disabled">
						<option value=''>请选择</option>
						<option value='M'>主要</option>
						<option value='O'>其他</option>
					</select>
				</div>
				<label class="col-xs-1" style="line-height: 30px;">字段顺序</label>
				<div class="col-xs-2">
					<select class='form-control' id="fieldOrder" disabled="disabled"></select>
				</div>
				<div class="col-xs-2">
					<button class="btn btn-info" type="button"
						onclick="saveSingleField()">保存</button>
				</div>
			</div>
			<div class="form-group col-xs-12">
				<div class="alert alert-info">
					<b>注:</b>主要其他用于区分诊断、手术是主要还是其他,字段顺序用于标识诊断、手术、费用的顺序
				</div>
			</div>
		</div>
		<div class="row">
			<!-- 表格模块 -->
			<div class="col-xs-12">
				<table id="filedMap_Table" class="table display nowrap"
					style="width: 100%;">
					</div>
			</div>
		</div>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/config/fieldMap.js"></script>
</body>
</html>